home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
Other Langs
/
Tickle-4.0 (tcl)
/
src
/
XTCL_echo.c
< prev
next >
Wrap
Text File
|
1993-11-18
|
1KB
|
56 lines
/*
** This source code was written by Tim Endres
** Email: time@ice.com.
** USMail: 8840 Main Street, Whitmore Lake, MI 48189
**
** Some portions of this application utilize sources
** that are copyrighted by ICE Engineering, Inc., and
** ICE Engineering retains all rights to those sources.
**
** Neither ICE Engineering, Inc., nor Tim Endres,
** warrants this source code for any reason, and neither
** party assumes any responsbility for the use of these
** sources, libraries, or applications. The user of these
** sources and binaries assumes all responsbilities for
** any resulting consequences.
*/
#include <Types.h>
#include <Resources.h>
#include <QuickDraw.h>
#include <Windows.h>
#include <Memory.h>
#include "tcl.h"
#include "xtcl.h"
void
XTCLEntry(argc, argv, xpb)
int argc;
char **argv;
XTCLParmBlk *xpb;
{
char *ptr, state;
int i, length, slen;
xpb->result = TCL_OK;
length = GetHandleSize(xpb->resultH);
for (i=1; i < argc; i++)
slen += strlen(argv[i]) + 1;
SetHandleSize(xpb->resultH, slen+1);
state = HGetState(xpb->resultH);
HLock(xpb->resultH);
for (ptr=*xpb->resultH, i=1; i < argc; i++) {
strcat(ptr, argv[i]);
strcat(ptr, " ");
ptr += strlen(ptr);
}
HSetState(xpb->resultH, state);
}